package cc.wanforme.chipmunity.system.service;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cc.wanforme.chipmunity.system.mapper.TableTMapper;
import cc.wanforme.chipmunity.system.po.TableT;
import cc.wanforme.chipmunity.system.service.interfaces.TableTService;

/**测试mybatis-plus 插入后是否自动更新
 * @author wanne
 * 2019年9月18日
 * 
 */
@Service
public class TableTServiceimpl extends ServiceImpl<TableTMapper, TableT> implements TableTService{

	@Override
	public void TestInsertResult() {
		TableT t = new TableT();
//		t.setId(System.currentTimeMillis());
		t.setContent("测试值");
		System.out.println("1: "+t);
		this.save(t);
		
		System.out.println("2: " +t);
	}

}
